package com.delu.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author Liu
 * @since 2021-12-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("coupon")
@AllArgsConstructor
@NoArgsConstructor
public class Coupon implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 优惠券id
     */
    @TableId(value = "coupon_id", type = IdType.AUTO)
    private Integer couponId;

    /**
     * 名称
     */
    private String couponName;

    /**
     * 优惠券面额
     */
    private BigDecimal couponDenomination;

    /**
     * 优惠券类型
     */
    private Integer couponType;

    /**
     * 优惠条件(例如满100进行使用优惠券面额)
     */
    private Integer couponRule;

    /**
     * 优惠券数量
     */
    private Integer couponNumber;

    /**
     * 优惠券有效天数
     */
    private Integer couponDay;

    /**
     * 优惠券是否可用
     */
    private Integer couponStatus;

    /**
     * 优惠券起始时间
     */
    private LocalDateTime uptime;

    /**
     * 优惠券结束时间
     */
    private LocalDateTime overtime;


}
